# /usr/bin/python3

# Author: 爱编程的章老师
# @Time: 2020/12/31 0031
# E-mail: Bluesand2010@163.com

import pygame
import sys

pygame.init()
screen = pygame.display.set_mode((800, 600))

rect1 = pygame.Rect(50, 50, 100, 100)
rect2 = pygame.Rect((50,50), (100, 100))
rect3 = pygame.Rect(rect1)
print(rect3.size)
print(rect3.x)
print(rect3.y)
print(rect3.center)
print(rect3.topleft)
rect3.width = 200
print(rect3.size)

pygame.draw.rect(screen,(255, 0, 0),rect3, 5)
pygame.display.update()
while 1:
    for event in pygame.event.get():
        if event.type == pygame.QUIT:
            sys.exit()


pygame.quit()